package com.edu.swu.dao.imp;

import com.edu.swu.dao.IUserDao;
import com.edu.swu.domain.User;

public class UserDaoImp implements IUserDao {
    public Integer findAge(User user) {
        return user.getUserage();
    }

    public User MaxUserAge(User user1, User user2) {
        return findAge(user1)>findAge(user2)?user1:user2;
    }
}
